import request from '@/utils/request'

// 查询职级列表
export function listImRankm(query) {
  return request({
    url: '/imRank/imRankm/list',
    method: 'get',
    params: query
  })
}

// 查询职级详细
export function getImRankm(rankId) {
  return request({
    url: '/imRank/imRankm/' + rankId,
    method: 'get'
  })
}

// 新增职级
export function addImRankm(data) {
  return request({
    url: '/imRank/imRankm',
    method: 'post',
    data: data
  })
}

// 修改职级
export function updateImRankm(data) {
  return request({
    url: '/imRank/imRankm',
    method: 'put',
    data: data
  })
}

// 删除职级
export function delImRankm(rankId) {
  return request({
    url: '/imRank/imRankm/' + rankId,
    method: 'delete'
  })
}
